import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
// import 'lib-flexible'
Vue.prototype.$http = axios
import * as filter from './filters';
Vue.config.productionTip = false
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import {
  quillEditor
} from "vue-quill-editor"; //调用编辑器
import {
  toolBars
} from "@/utils/ToolBars.js";
const options = {
  placeholder: "请输入...",
  modules: {
    toolbar: {
      container: toolBars,
    }
  },
}
quillEditor.options = options
Vue.component('quillEditor', quillEditor)
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";


Object.keys(filter).forEach(item => {
  Vue.filter(item, filter[item])
});
Vue.use(ElementUI)
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')